import axios from '@/libs/api.request'

//通过键获取redis中的值
export const redisGet = (data) => {
  return axios.request({
    url: 'redis/getValue',
    method: 'post',
    data:data
  })
}
//获取消息
export const getMessageData = (data) => {
  return axios.request({
    url: 'sysMessage/getMessageData',
    method: 'post',
    data:data
  })
}

//获取消息
export const seenMessage = (data) => {
  return axios.request({
    url: 'sysMessage/seenMessage',
    method: 'post',
    data:data
  })
}
//发送换绑短信
export const sendReplaceMsg = (data) => {
  return axios.request({
    url: 'sysUser/sendReplaceMsg',
    method: 'post',
    data
  })
}
//换绑手机号
export const replacePhoneNum = (data) => {
  return axios.request({
    url: 'sysUser/replacePhoneNum',
    method: 'post',
    data
  })
}
//换绑手机号
export const getFileById = (data) => {
  return axios.request({
    url: 'sysFile/getFileById',
    method: 'post',
    data
  })
}
